package cn.hls.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
@Table(name="t_cert_expire_warn")
@Entity
@DynamicInsert
@DynamicUpdate
public class CertSet extends BaseEntity {
	private static final long serialVersionUID = -2277395014685336273L;
	private String certName;// 证书名称
	private String certCode;// 证书代码
	private boolean expireWarn;// 证书到期是否提醒
	private Integer warnInterval;// 提醒间隔
	private Integer preMonth;// 证书到期前几个月提醒
	private String warnType;// 短信提醒几类人员 1-企业法人 2-安管人员 3-证书持有者

	@Column(name = "cert_name", length = 32)
	public String getCertName() {
		return certName;
	}

	public void setCertName(String certName) {
		this.certName = certName;
	}

	@Column(name = "cert_code", length = 16)
	public String getCertCode() {
		return certCode;
	}

	public void setCertCode(String certCode) {
		this.certCode = certCode;
	}

	@Column(name = "is_expire_warn", columnDefinition = "char default 1")
	public boolean isExpireWarn() {
		return expireWarn;
	}

	public void setExpireWarn(boolean expireWarn) {
		this.expireWarn = expireWarn;
	}

	@Column(name = "warn_interval", length = 3)
	public Integer getWarnInterval() {
		return warnInterval;
	}

	public void setWarnInterval(Integer warnInterval) {
		this.warnInterval = warnInterval;
	}

	@Column(name = "pre_month", length = 3)
	public Integer getPreMonth() {
		return preMonth;
	}

	public void setPreMonth(Integer preMonth) {
		this.preMonth = preMonth;
	}

	public String getWarnType() {
		return warnType;
	}

	@Column(name = "warn_type", length = 3)
	public void setWarnType(String warnType) {
		this.warnType = warnType;
	}

}
